package BehaviorModel.chainOfResponsibilityModel;

/**
 * 功能描述: 5000 <= x < 30000 副董事长 审批
 * 2024/02/21
 *
 * @see Handler
 * ZhangYi
 */
public class VicePresidentHandler extends Handler{

    public VicePresidentHandler(String name) {
        super(name);
    }

    @Override
    public void handleRequest(PurseRequest purseRequest) {
        if (purseRequest.getPrice()>= 5000 && purseRequest.getPrice() <30000 ){
            System.out.println(this.name + "副董事长审批" + purseRequest.toString());
        }else {
            // 董事长审批
            nextHandler.handleRequest(purseRequest);
        }
    }
}
